package edu.sandau.b230111.b23011125.Model;



import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name="userinfo")
public class UserInfo {
    @Id
    private String userid;
    private String name;
    private String school;
    private Integer submitCount;
    private Integer rightCount;
    private Integer isAdmin;

    public UserInfo() {

    }

    public UserInfo(String userid, Integer isAdmin, Integer rightCount, Integer submitCount, String school, String name) {
        this.userid = userid;
        this.isAdmin = isAdmin;
        this.rightCount = rightCount;
        this.submitCount = submitCount;
        this.school = school;
        this.name = name;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public Integer getSubmitCount() {
        return submitCount;
    }

    public void setSubmitCount(Integer submitCount) {
        this.submitCount = submitCount;
    }

    public Integer getRightCount() {
        return rightCount;
    }

    public void setRightCount(Integer rightCount) {
        this.rightCount = rightCount;
    }

    public Integer getIsAdmin() {
        return isAdmin;
    }

    public void setIsAdmin(Integer isAdmin) {
        this.isAdmin = isAdmin;
    }


}
